/*
 * @Author: wrh123 482597539@qq.com
 * @Date: 2024-01-21 15:07:52
 * @LastEditors: wrh123 482597539@qq.com
 * @LastEditTime: 2024-01-21 15:30:20
 * @FilePath: /vue-admin/src/api/distributed.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import service from '@/utils/request'

// 账户监控分页查询
export function getDistributedList(params) {
  return service({
    url: '/accountMon/Page',
    method: 'get',
    params
  })
}

// 账户监控编辑操作
export function editDistributed(data) {
  return service({
    url: '/accountMon/updateResion',
    method: 'put',
    data
  })
}

// 发送短信
export function sendSms(data) {
  return service({
    url: '/accountMon/sendTextMessage',
    method: 'post',
    data
  })
}

// 交易历史分页查询
export function getTableData(params) {
  return service({
    url: "/UserRecord/selectTbUserRecords",
    mehtod: "get",
    params
  })
}

// 持仓历史分页查询
export function getCcData(params) {
  return service({
    url: "/UserRecord/selectTbUserPositions",
    mehtod: "get",
    params
  })
}

// 持仓历史分页查询
export function getUserData(params) {
  return service({
    url: "/UserRecord/selectTbUserInformation",
    mehtod: "get",
    params
  })
}